package com.digitalchina.lxnsy.update;

import org.lzh.framework.updatepluginlib.UpdateBuilder;

/**
 * Created by Administrator on 2017/5/13.
 */

public class UpdateApk {

    public static void update() {
        UpdateBuilder builder = UpdateBuilder.create();
        builder.strategy(new AllDialogShowStrategy()); // wifi 环境下显示下载对话框 （默认不显示）
        builder.updateDialogCreator(new CustomNeedUpdateCreator()); // 检查更新对话框
        builder.installDialogCreator(new CustomNeedInstallCreator()); // 安装更新对话框
        builder.downloadDialogCreator(new CustomNeedDownloadCreator()); // 下载对话框
        builder.check();
    }
}
